package test10;

/**
 * Created by tianxiadiyishuai on 2017/10/24.
 */
public class People {
    //属性：性别，年龄，姓名
    String gender;
    String age;
    String name;
    public String getGrnder(){return gender;}
    public String getAge(){return age;}
    public String getName(){return name;}
    public String toString(){return (gender+" "+age+" "+name);}
    //行为：睡觉，运动
    void sleep(){System.out.println("睡觉");}
    void run(){System.out.println("跑步");};
}
